package com.liming.common.pojo.dto.product;

import cn.idev.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author liming
 * @date 2025/5/15
 */
@Data
@Schema(description = "商品Excel导入参数")
public class ProductImportDTO {

    @ExcelProperty(value = "商品名称", index = 0)
    @Schema(description = "商品名称", defaultValue = "商品名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String name;

    @ExcelProperty(value = "商品型号", index = 1)
    @Schema(description = "商品型号", requiredMode = Schema.RequiredMode.REQUIRED)
    private String modelNumber;

    @ExcelProperty(value = "商品售价", index = 2)
    @Schema(description = "商品售价", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer price;

    @ExcelProperty(value = "商品原价", index = 3)
    @Schema(description = "商品原价", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer originalPrice;

    @ExcelProperty(value = "品牌名称", index = 4)
    @Schema(description = "品牌名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String brandName;

    @ExcelProperty(value = "分类名称", index = 5)
    @Schema(description = "分类名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String categoryName;

    @ExcelProperty(value = "商品参数信息", index = 6)
    @Schema(description = "商品参数信息", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String parameters;

    @ExcelProperty(value = "商品功能特点介绍内容", index = 7)
    @Schema(description = "商品功能特点介绍内容", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String features;
}
